Optimal. Leaf size=273 \[ \frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}+\frac {\left (a e^2+b d^2 (1+2 p)\right ) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d e \left (b d^2+a e^2\right )}-\frac {b d (1+2 p) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )}{e \left (b d^2+a e^2\right )}-\frac {\left (a e^2+b d^2 (1+2 p)\right ) \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 \left (b d^2+a e^2\right )^2 (1+p)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.15, antiderivative size = 273, normalized size of antiderivative = 1.00, number of steps
used = 10, number of rules used = 9, integrand size = 18, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.500, Rules used = {849, 858, 252,
251, 771, 441, 440, 455, 70} \begin {gather*} \frac {x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \left (a e^2+b d^2 (2 p+1)\right ) F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d e \left (a e^2+b d^2\right )}-\frac {b d (2 p+1) x \left (a+b x^2\right )^p \left (\frac {b x^2}{a}+1\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )}{e \left (a e^2+b d^2\right )}-\frac {\left (a+b x^2\right )^{p+1} \left (a e^2+b d^2 (2 p+1)\right ) \, _2F_1\left (1,p+1;p+2;\frac {e^2 \left (b x^2+a\right )}{b d^2+a e^2}\right )}{2 (p+1) \left (a e^2+b d^2\right )^2}+\frac {d \left (a+b x^2\right )^{p+1}}{(d+e x) \left (a e^2+b d^2\right )} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 70
Rule 251
Rule 252
Rule 440
Rule 441
Rule 455
Rule 771
Rule 849
Rule 858
Rubi steps
\begin {align*} \int \frac {x \left (a+b x^2\right )^p}{(d+e x)^2} \, dx &=\frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}-\frac {\int \frac {(-a e+b d (1+2 p) x) \left (a+b x^2\right )^p}{d+e x} \, dx}{b d^2+a e^2}\\ &=\frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}-\frac {(b d (1+2 p)) \int \left (a+b x^2\right )^p \, dx}{e \left (b d^2+a e^2\right )}+\frac {\left (a e^2+b d^2 (1+2 p)\right ) \int \frac {\left (a+b x^2\right )^p}{d+e x} \, dx}{e \left (b d^2+a e^2\right )}\\ &=\frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}+\frac {\left (a e^2+b d^2 (1+2 p)\right ) \int \left (\frac {d \left (a+b x^2\right )^p}{d^2-e^2 x^2}+\frac {e x \left (a+b x^2\right )^p}{-d^2+e^2 x^2}\right ) \, dx}{e \left (b d^2+a e^2\right )}-\frac {\left (b d (1+2 p) \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \left (1+\frac {b x^2}{a}\right )^p \, dx}{e \left (b d^2+a e^2\right )}\\ &=\frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}-\frac {b d (1+2 p) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )}{e \left (b d^2+a e^2\right )}+\frac {\left (a e^2+b d^2 (1+2 p)\right ) \int \frac {x \left (a+b x^2\right )^p}{-d^2+e^2 x^2} \, dx}{b d^2+a e^2}+\frac {\left (d \left (a e^2+b d^2 (1+2 p)\right )\right ) \int \frac {\left (a+b x^2\right )^p}{d^2-e^2 x^2} \, dx}{e \left (b d^2+a e^2\right )}\\ &=\frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}-\frac {b d (1+2 p) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )}{e \left (b d^2+a e^2\right )}+\frac {\left (a e^2+b d^2 (1+2 p)\right ) \text {Subst}\left (\int \frac {(a+b x)^p}{-d^2+e^2 x} \, dx,x,x^2\right )}{2 \left (b d^2+a e^2\right )}+\frac {\left (d \left (a e^2+b d^2 (1+2 p)\right ) \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p}\right ) \int \frac {\left (1+\frac {b x^2}{a}\right )^p}{d^2-e^2 x^2} \, dx}{e \left (b d^2+a e^2\right )}\\ &=\frac {d \left (a+b x^2\right )^{1+p}}{\left (b d^2+a e^2\right ) (d+e x)}+\frac {\left (a e^2+b d^2 (1+2 p)\right ) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} F_1\left (\frac {1}{2};-p,1;\frac {3}{2};-\frac {b x^2}{a},\frac {e^2 x^2}{d^2}\right )}{d e \left (b d^2+a e^2\right )}-\frac {b d (1+2 p) x \left (a+b x^2\right )^p \left (1+\frac {b x^2}{a}\right )^{-p} \, _2F_1\left (\frac {1}{2},-p;\frac {3}{2};-\frac {b x^2}{a}\right )}{e \left (b d^2+a e^2\right )}-\frac {\left (a e^2+b d^2 (1+2 p)\right ) \left (a+b x^2\right )^{1+p} \, _2F_1\left (1,1+p;2+p;\frac {e^2 \left (a+b x^2\right )}{b d^2+a e^2}\right )}{2 \left (b d^2+a e^2\right )^2 (1+p)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.22, size = 223, normalized size = 0.82 \begin {gather*} \frac {\left (\frac {e \left (-\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \left (\frac {e \left (\sqrt {-\frac {a}{b}}+x\right )}{d+e x}\right )^{-p} \left (a+b x^2\right )^p \left (-2 d p F_1\left (1-2 p;-p,-p;2-2 p;\frac {d-\sqrt {-\frac {a}{b}} e}{d+e x},\frac {d+\sqrt {-\frac {a}{b}} e}{d+e x}\right )+(-1+2 p) (d+e x) F_1\left (-2 p;-p,-p;1-2 p;\frac {d-\sqrt {-\frac {a}{b}} e}{d+e x},\frac {d+\sqrt {-\frac {a}{b}} e}{d+e x}\right )\right )}{2 e^2 p (-1+2 p) (d+e x)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.02, size = 0, normalized size = 0.00 \[\int \frac {x \left (b \,x^{2}+a \right )^{p}}{\left (e x +d \right )^{2}}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x \left (a + b x^{2}\right )^{p}}{\left (d + e x\right )^{2}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x\,{\left (b\,x^2+a\right )}^p}{{\left (d+e\,x\right )}^2} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________